//
//  BaseTableViewController.swift
//  MyWeiBo
//
//  Created by mac on 15/3/4.
//  Copyright (c) 2015年 gpr. All rights reserved.
//

import UIKit

class BaseTableViewController: UITableViewController {
    
    class func controllerWithStoryBoardName(name: String) -> UIViewController {
        let storyBoard = UIStoryboard(name: name, bundle: nil)
        return storyBoard.instantiateInitialViewController() as! UIViewController
    }

    override func viewDidLoad() {
        super.viewDidLoad()
//        self.view.backgroundColor = randomColor()
    }

    func setUpTabBarButtonWithImage(title: NSString, imageName: String, selectedImageName: String) {
        self.navigationController!.title = title as String
        self.navigationController!.tabBarItem.image = UIImage.originalImageWithName(imageName)
        self.navigationController!.tabBarItem.selectedImage = UIImage.originalImageWithName(selectedImageName)
    }
}
